package com.hotline.communication.mapper;


import com.hotline.communication.dto.AreaChooseDTO;
import com.hotline.communication.entity.AreaChoose;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface AreaChooseMapper {

    /**
     * 批量插入
     * @param list
     * @return
     */
    Integer insertBatch(List<AreaChoose> list);

    /**
     * 更新
     * @param areaChoose
     * @return
     */
    Integer update(AreaChoose areaChoose);

    /**
     * 更新
     * @param areaChoose
     * @return
     */
    Integer updateByCallId(AreaChoose areaChoose);


    /**
     * 查询
     * @param areaChooseDTO
     * @return
     */
    List<AreaChoose> selectList(AreaChooseDTO areaChooseDTO);

    /**
     * 查询总数
     * @param callId
     * @return
     */
    Integer countByCallId(@Param("callId") String callId);

    /**
     * 查询
     * @param areaChooseDTO
     * @return
     */
    AreaChoose selectOne(AreaChooseDTO areaChooseDTO);

}
